Skip to content

Conversation

@cmaglie
Copy link
Member

@cmaglie cmaglie commented Aug 11, 2025

Please check if the PR fulfills these requirements

See how to contribute

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • configuration.schema.json updated if new parameters are added.

What kind of change does this PR introduce?

Refactor the dep (.d) file parser to handle more cases, and refine the subroutine API.

What is the current behavior?

No changes.

What is the new behavior?

No changes.

Does this PR introduce a breaking change, and is titled accordingly?

No.

Other information

@cmaglie cmaglie self-assigned this Aug 11, 2025
@cmaglie cmaglie added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Aug 11, 2025
@cmaglie cmaglie force-pushed the dep_file_parser branch 3 times, most recently from afc0826 to ce2aa2a Compare August 12, 2025 00:03
@codecov
Copy link

codecov bot commented Aug 12, 2025

Codecov Report

❌ Patch coverage is 93.18182% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.40%. Comparing base (a86947b) to head (090ecea).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
internal/arduino/builder/internal/utils/utils.go 70.00% 5 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2972      +/-   ##
==========================================
+ Coverage   69.34%   69.40%   +0.06%     
==========================================
  Files         241      242       +1     
  Lines       18590    18632      +42     
==========================================
+ Hits        12891    12932      +41     
- Misses       4503     4504       +1     
  Partials     1196     1196              
Flag Coverage Δ
unit 69.40% <93.18%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@per1234 per1234 added the topic: build-process Related to the sketch build process label Aug 29, 2025
@cmaglie cmaglie marked this pull request as ready for review November 17, 2025 22:42
@cmaglie cmaglie requested a review from a team November 19, 2025 09:11
Copy link
Contributor

@lucarin91 lucarin91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely a step in the correct direction, but I would try to make the parser step cleaner and work directly on the io.Reader in streaming (if possible). Anyway, for my limited knowledge of this part of the cli I didn't find a big issues, so we could also proceed to merge this, and improve that later.

@cmaglie cmaglie merged commit f102aad into arduino:master Nov 19, 2025
101 checks passed
@cmaglie cmaglie deleted the dep_file_parser branch November 19, 2025 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: build-process Related to the sketch build process topic: code Related to content of the project itself type: enhancement Proposed improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants